package com.loren.demo27.form.xml;

import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;

@Getter
@Setter
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlTable {

    @XmlAttribute
    private String attribute;

    @XmlAttribute
    private String name;

    @XmlAttribute
    private String description;

    @XmlAttribute
    private String permission;

    @XmlElement(name = "column")
    private List<TableColumn> columnList;

    @XmlElement(name = "foreign")
    private List<TableForeign> foreignList;

    @XmlElement(name = "transient")
    private List<TableTransient> transientList;

}
